<?php /* Smarty version 2.6.16, created on 2013-09-08 10:36:07
         compiled from ../templates/default//modules/myaccount/editprofile.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'ucfirst', '../templates/default//modules/myaccount/editprofile.tpl', 56, false),)), $this); ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => $this->_tpl_vars['header_start'], 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
  echo '<link rel="stylesheet" type="text/css" href="';  echo $this->_tpl_vars['siteroot'];  echo '/templates/default/style/dashboard.css"><script src="';  echo $this->_tpl_vars['siteroot'];  echo '/includes/js/myaccount.js" type="text/javascript"></script>'; ?>

<?php echo '
<script type="text/javascript">

	function allowCharAndNumbersOnly(e)                                               //Allows only characters to be entered    
	{
		if(navigator.appName=="Microsoft Internet Explorer")
		{
			if((e.keyCode >64 && e.keyCode < 91)||(e.keyCode >47 && e.keyCode < 58) || (e.keyCode >96 && e.keyCode<123) || e.keyCode==32 || e.keyCode==8 || e.keyCode==0)
			{}
			else
			{
				e.keyCode=" ";
				return false;
			}
		}
		else if(navigator.appName=="Netscape")
		{
			if((e.which >64 && e.which < 91) || (e.which >47 && e.which < 58)|| (e.which >96 && e.which<123) || e.which==0 || e.which==8 || e.which==32)
			{}
			else
				return false;
		}
		return true;
	}
	
	
</script>
'; ?>

<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => $this->_tpl_vars['header_end'], 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
   <!-- MIDDLE CONTAIN GOES HERE -->
<section class="middle_portion">
	<section class="inner_head">Dashboard</section>
    <section class="inner_containstart">
    	<!-- dashboard Left Content Start -->
        	<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => $this->_tpl_vars['cms_left_content'], 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
        <!-- dashboard Left Content End -->
        <!-- dashboard Right Content Start -->
        	<section class="dash_right">            	                
            <?php if ($this->_tpl_vars['msg']):  echo $this->_tpl_vars['msg'];  endif; ?>
            	<section class="title_box">
                    <h4>Edit Profile</h4>
                    <section class="clear"></section>
                </section>
                <form method="post" action="" name="frmMngProfile" id="frmMngProfile" enctype="multipart/form-data">
                 <input type="hidden" name="hidden_userid" id="hidden_userid" value="<?php echo $this->_tpl_vars['userDetArray']['id']; ?>
" />
                 

                <section class="profile_wrapp">
                    <dl>
                        <dt><label>First Name :  </label></dt>
                        <dd><input type="text" class="input" name="fname" id="fname" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['userDetArray']['first_name'])) ? $this->_run_mod_handler('ucfirst', true, $_tmp) : smarty_modifier_ucfirst($_tmp)); ?>
" /></dd>
                        <section class="clear"></section>
                    </dl>
                    <dl>
                        <dt><label>Last Name : </label></dt>
                        <dd><input type="text" class="input" name="lname" id="lname" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['userDetArray']['last_name'])) ? $this->_run_mod_handler('ucfirst', true, $_tmp) : smarty_modifier_ucfirst($_tmp)); ?>
" /></dd>
                        <section class="clear"></section>
                    </dl>
                    <section class="clear"></section>
                    <dl>
                        <dt><label>Email : </label></dt>
                        <dd><input type="text" class="input" name="email" id="email" value="<?php echo $this->_tpl_vars['userDetArray']['email']; ?>
" /></dd>
                        <section class="clear"></section>
                    </dl>
                    <dl>
                        <dt><label>Phone : </label></dt>
                        <dd><input type="text" class="input" name="mobno" id="mobno" value="<?php echo $this->_tpl_vars['userDetArray']['phone_number']; ?>
" /></dd>
                        <section class="clear"></section>
                    </dl>
                    <section class="clear"></section>
                     <dl>
                        <dt><label>Postcode : </label></dt>
                        <dd><input type="text" class="input" name="postcode" id="postcode" value="<?php echo $this->_tpl_vars['userDetArray']['postalcode']; ?>
" /></dd>
                        <section class="clear"></section>
                    </dl>
                    <?php if ($_SESSION['user_type'] != '4'): ?>
                    <section class="clear"></section>
                    <dl>
                        <dt><label>Business name : </label></dt>
                        <dd><input type="text" class="input" name="business_name" id="business_name" value="<?php echo $this->_tpl_vars['userDetArray']['business_name']; ?>
" /> </dd>
                        <section class="clear"></section>
                    </dl>
                    <dl>
                        <dt><label>Industry : </label></dt>
                        <dd><input type="text" class="input" name="industry" id="industry" value="<?php echo $this->_tpl_vars['userDetArray']['industry']; ?>
" /></dd>
                        <section class="clear"></section>
                    </dl>
                    <section class="clear"></section>
                    <dl>
                        <dt><label>ABN : </label></dt>
                        <dd><input type="text" class="input" name="abn" id="abn" value="<?php echo $this->_tpl_vars['userDetArray']['abn']; ?>
" /> </dd>
                        <section class="clear"></section>
                    </dl>
                    <dl>
                        <dt><label>ACN : </label></dt>
                        <dd><input type="text" class="input" name="acn" id="acn" value="<?php echo $this->_tpl_vars['userDetArray']['acn']; ?>
" /></dd>
                        <section class="clear"></section>
                    </dl>
                    <?php endif; ?>
                    <?php if ($_SESSION['user_type'] == '4'): ?>
                    <dl>
                        <dt><label>State : </label></dt>
                        <dd>						
						<select class="select" name="state_id" id="state_id" >
						<option value="" >Select State</option>
						<?php unset($this->_sections['i']);
$this->_sections['i']['name'] = 'i';
$this->_sections['i']['loop'] = is_array($_loop=$this->_tpl_vars['stateArray']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['i']['show'] = true;
$this->_sections['i']['max'] = $this->_sections['i']['loop'];
$this->_sections['i']['step'] = 1;
$this->_sections['i']['start'] = $this->_sections['i']['step'] > 0 ? 0 : $this->_sections['i']['loop']-1;
if ($this->_sections['i']['show']) {
    $this->_sections['i']['total'] = $this->_sections['i']['loop'];
    if ($this->_sections['i']['total'] == 0)
        $this->_sections['i']['show'] = false;
} else
    $this->_sections['i']['total'] = 0;
if ($this->_sections['i']['show']):

            for ($this->_sections['i']['index'] = $this->_sections['i']['start'], $this->_sections['i']['iteration'] = 1;
                 $this->_sections['i']['iteration'] <= $this->_sections['i']['total'];
                 $this->_sections['i']['index'] += $this->_sections['i']['step'], $this->_sections['i']['iteration']++):
$this->_sections['i']['rownum'] = $this->_sections['i']['iteration'];
$this->_sections['i']['index_prev'] = $this->_sections['i']['index'] - $this->_sections['i']['step'];
$this->_sections['i']['index_next'] = $this->_sections['i']['index'] + $this->_sections['i']['step'];
$this->_sections['i']['first']      = ($this->_sections['i']['iteration'] == 1);
$this->_sections['i']['last']       = ($this->_sections['i']['iteration'] == $this->_sections['i']['total']);
?>
						<option value="<?php echo $this->_tpl_vars['stateArray'][$this->_sections['i']['index']]['state_id']; ?>
" <?php if ($this->_tpl_vars['userDetArray']['state_id'] == $this->_tpl_vars['stateArray'][$this->_sections['i']['index']]['state_id']): ?> selected="selected"  <?php endif; ?>><?php echo $this->_tpl_vars['stateArray'][$this->_sections['i']['index']]['state_name']; ?>
</option>
						<?php endfor; endif; ?>
						</select>
						</dd>
                        <section class="clear"></section>
                    </dl>
                    <!--   <section class="clear"></section>
                  <dl>
                        <dt><label>Radius : </label></dt>
                        <dd><input type="text" class="input" name="radius" id="radius" value="<?php echo $this->_tpl_vars['userDetArray']['radius']; ?>
 Kilometres" readonly="readonly"/> </dd>
                        <section class="clear"></section>
                    </dl>-->
                    <dl>
                        <dt><label>Company Name : </label></dt>
                        <dd><input type="text" class="input" name="companyname" id="companyname" value="<?php echo $this->_tpl_vars['userDetArray']['companyname']; ?>
"  onkeypress="return allowCharAndNumbersOnly(event);" style="text-transform:lowercase;" /></dd>
                        <section class="clear"></section>
                    </dl>
                   <!-- <section class="clear"></section>-->
                     <dl>
                        <dt><label>ABN : </label></dt>
                        <dd><input type="text" class="input" name="abn" id="abn" value="<?php echo $this->_tpl_vars['userDetArray']['abn']; ?>
" /> </dd>
                        <section class="clear"></section>
                    </dl>
                    <dl>
                        <dt><label>ACN : </label></dt>
                        <dd><input type="text" class="input" name="acn" id="acn" value="<?php echo $this->_tpl_vars['userDetArray']['acn']; ?>
" /></dd>
                        <section class="clear"></section>
                    </dl>
                    
                    
                    <dl>
                        <dt><label>Company description : </label></dt>
                        <dd><textarea class="textarea" name="companydescription" id="companydescription"><?php echo $this->_tpl_vars['userDetArray']['companydescription']; ?>
</textarea></dd>
                        <section class="clear"></section>
                    </dl>
<section class="clear"></section>
                    <dl>
                        <dt><label>Company logo : </label></dt>
                        <dd><?php if ($this->_tpl_vars['userDetArray']['companylogo']): ?>
                        		<section class="com_logo_img_wrapp">
                                <img src="<?php echo $this->_tpl_vars['siteroot']; ?>
/includes/image.php?width=150&amp;height=150&amp;image=<?php echo $this->_tpl_vars['siteroot']; ?>
/uploads/company/<?php echo $this->_tpl_vars['userDetArray']['companylogo']; ?>
" title="company logo" alt="company logo"/>
                                </section>
                         	<?php else: ?>	
                            <section class="com_logo_img_wrapp">
                            	<img src="<?php echo $this->_tpl_vars['siteroot']; ?>
/uploads/company/defaultcomopany.jpg" height="150px" width="150px"  />
                                </section>
                            <?php endif; ?>  
                            <input type="file" id="companylogo" name="companylogo"  />     
                         </dd>
                        <section class="clear"></section>
                    </dl>
                    <section class="clear"></section>
                  <!--  <dl>
                        <dt><label>About Me : </label></dt>
                        <dd><textarea class="textarea" name="about_me" id="about_me"><?php echo $this->_tpl_vars['userDetArray']['about_me']; ?>
</textarea></dd>
                        <section class="clear"></section>
                    </dl>
                    <dl>
                        <dt><label>Work History : </label></dt>
                        <dd><textarea class="textarea" name="workhistory" id="workhistory"><?php echo $this->_tpl_vars['userDetArray']['workhistory']; ?>
</textarea></dd>
                        <section class="clear"></section>
                    </dl>
                    <section class="clear"></section>
                    <dl>
                        <dt><label>Qualifications & Accreditations : </label></dt>
                        <dd><textarea class="textarea" name="qual_accred" id="qual_accred"><?php echo $this->_tpl_vars['userDetArray']['qual_accred']; ?>
</textarea></dd>
                        <section class="clear"></section>
                    </dl>-->
                     <section class="clear"></section>
                    
                    <?php endif; ?>
                    
                    
                     <section class="clear"></section>
                    <section class="bt_save_wrapp">
                    	<input type="submit" value="Save" name="save_btn" id="save_btn" class="bt_save"/>
                        <input type="button" value="Cancel" name="cancel_btn" id="cancel_btn" class="bt_save" <?php if ($_SESSION['user_type'] == '3'): ?> onclick="window.location.href='<?php echo $this->_tpl_vars['siteroot']; ?>
/myaccount/'" <?php else: ?> onclick="window.location.href='<?php echo $this->_tpl_vars['siteroot']; ?>
/profile/<?php echo $this->_tpl_vars['userDetArray']['newcomapnyname']; ?>
'" <?php endif; ?>/>
                    </section>

                </section>                
                </form>
            </section>
        <!-- dashboard Right Content End -->
        	<section class="clear"></section>
    </section>
</section>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => $this->_tpl_vars['footer'], 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>